﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace MilkTeaMachine.OfflineClient.EntityFrameworkCore.Models;

[Table("tb_ingredient")]
public sealed class Ingredient
{
    private const int N = -1;
    public int Id { get; set; }
    [MaxLength(256)] public required string IngredientName { get; set; }
    [MaxLength(256)] public string? Manufacturer { get; set; }
    [MaxLength(1024)] public string? Description { get; set; }
    public required int DeviceAddress { get; set; }
    public int? TurnsPerGram { get; set; }
    public int OutSpeed { get; set; } = 200;

    public override string ToString()
    {
        return IngredientName;
    }
}